package com.isi.mtl.lf.ex3.managers;

import java.sql.SQLException;
import java.util.ArrayList;

import com.isi.mtl.lf.ex3.entites.Marque;
import com.isi.mtl.lf.ex3.entites.Modele;
import com.isi.mtl.lf.ex3.services.BDDMapConfig;

public class MarqueManager {

	@SuppressWarnings("unchecked")
	public static ArrayList<Marque> getAlMarques() {
		
		ArrayList<Marque> alMarques = null;
		
		try {
			
			alMarques = (ArrayList<Marque>) BDDMapConfig.getBddMapClient().queryForList("selectAllMarques");
		} catch (SQLException e) {
			e.printStackTrace();	
		}
		
		System.out.println(alMarques);
		
		return alMarques;
	}


}
